<!--#
 @version 0.3 (auto-set)
#-->

<!-- Table 'rss_channels' edit -->
<p align=center>
 <a href="?data_source=<#DATA_SOURCE#>">&lt;&lt;&lt; <#LANG_BACK#></a>
</p>
<table border=0 align=center cellpadding=3>
<form action="?" method="post" enctype="multipart/form-data" name="frmEdit">
[#if OK#]
<tr>
 <td colspan=2 align=center>
  <font color="green"><#LANG_DATA_SAVED#></font>
 </td>
</tr>
[#endif OK#]
[#if ERR#]
<tr>
 <td colspan=2 align=center>
  <font color="red"><#LANG_FILLOUT_REQURED#></font>
 </td>
</tr>
[#endif ERR#]
[#if ID=""#]
<tr>
 <td colspan=2 align=center><b><#LANG_NEW_CHANNEL#></b></td>
</tr>
[#endif ID#]
<!-- TITLE (varchar) -->
<tr>
 <td align=right>
 [#if ERR_TITLE#]<b><font color="red">[#endif#]
 <#LANG_TITLE#>:
 (*)
 </td>
 <td>
  <input type="text" name="title" value="[#TITLE#]" size="50">
 </td>
</tr>
<!-- URL (url) -->
<tr>
 <td align=right>
 [#if ERR_URL#]<b><font color="red">[#endif#]
 <#LANG_SOURCE_URL#> (*):
 </td>
 <td>
  <input type="text" name="url" value="[#URL#][#if URL=""#]http://[#endif#]" size="50">
 </td>
</tr>

<!-- UPDATE_EVERY (int) -->
<tr>
 <td align=right>
 [#if ERR_UPDATE_EVERY#]<b><font color="red">[#endif#]
 <#LANG_CHECK_EVERY#>:
 </td>
 <td>
  <input type="text" name="update_every" value="[#UPDATE_EVERY#]"> (<#LANG_MINUTES#>)
 </td>
</tr>
<!-- SCRIPT_ID (int) -->
<tr>
 <td align=right>
 [#if ERR_SCRIPT_ID#]<b><font color="red">[#endif#]
 <#LANG_EXECUTE_FOR_NEW_RECORDS#>:
 </td>
 <td>
  <select name="script_id">
   <option value="0">
   [#begin SCRIPTS#]
   <option value="[#ID#]"[#if ID="<#SCRIPT_ID#>"#] selected[#endif#]>[#TITLE#]
   [#end SCRIPTS#]
  </select>
 </td>
</tr>
<tr>
 <td colspan=2 align=center>
 [#if ID!=""#]
 <input type="submit" name="subm" value="<#LANG_UPDATE#>">
 [#else ID#]
 <input type="submit" name="subm" value="<#LANG_ADD#>">
 [#endif ID#]
 &nbsp;
 <a href="?data_source=<#DATA_SOURCE#>"><#LANG_CANCEL#></a>
 </td>
</tr>
<input type="hidden" name="id" value="<#ID#>">
<input type="hidden" name="view_mode" value="<#VIEW_MODE#>">
<input type="hidden" name="edit_mode" value="<#EDIT_MODE#>">
<input type="hidden" name="mode" value="update">
<input type="hidden" name="data_source" value="<#DATA_SOURCE#>">
<input type="hidden" name="tab" value="<#TAB#>">
</form>
</table>
